inspector: Stop adding event controllers to the object tree
authorTimm Bäder <mail@baedert.org>
Mon, 8 Jan 2018 17:10:02 +0000 (18:10 +0100)
committerTimm Bäder <mail@baedert.org>
Mon, 8 Jan 2018 18:23:06 +0000 (19:23 +0100)
There's a dedicated "Gesture" page for all the gestures.

gtk/inspector/object-tree.c

index d4a491de66741f129bc919ddd616e1dda6d38ca9..55886036fd6935c7190c4e582b02ec7e0422b749 100644 (file)
@@ -141,31 +141,8 @@ object_tree_widget_forall (GObject              *object,
                            ObjectTreeForallFunc  forall_func,
                            gpointer              forall_data)
 {
-  struct {
-    GtkPropagationPhase  phase;
-    const gchar         *name;
-  } phases[] = {
-    { GTK_PHASE_CAPTURE, "capture" },
-    { GTK_PHASE_TARGET,  "target" },
-    { GTK_PHASE_BUBBLE,  "bubble" },
-    { GTK_PHASE_NONE,    "" }
-  };
-  gint i;
   GtkWidget *child;
 
-  for (i = 0; i < G_N_ELEMENTS (phases); i++)
-    {
-      GList *list, *l;
-
-      list = _gtk_widget_list_controllers (GTK_WIDGET (object), phases[i].phase);
-      for (l = list; l; l = l->next)
-        {
-          GObject *controller = l->data;
-          forall_func (controller, phases[i].name, forall_data);
-        }
-      g_list_free (list);
-    }
-
    if (gtk_widget_is_toplevel (GTK_WIDGET (object)))
      {
        GObject *clock;